package com.srwl.mytx.service;


import com.srwl.mytx.domain.CommonResult;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.POST;

public interface TaskService {

    @POST("es/generateTask")
    Call<CommonResult> generateTask(@Body Object body);

    @POST("/es/isGetTheTask")
    Call<CommonResult> isGetTheTask(@Body Object body);

    @POST("/es/cancelTask")
    Call<CommonResult> cancelTask(@Body Object body);

    @POST("/es/confirmTask")
    Call<CommonResult> confirmTask(@Body Object body);

    @POST("/es/getTaskInfo")
    Call<CommonResult> getTaskInfo(@Body Object body);

    @POST("/es/getTaskInfo_v1")
    Call<CommonResult> getMyTaskInfoByTopicId(@Body Object body);

    @POST("/es/refuseCancelTask")
    Call<CommonResult> refuseCancelTask(@Body Object body);

    @POST("/es/agreeCancelTask")
    Call<CommonResult> agreeCancelTask(@Body Object body);


    @POST("/es/applyFinishTask")
    Call<CommonResult> applyFinishTask(@Body Object body);


    @POST("/es/refuseApplyFinish")
    Call<CommonResult> refuseApplyFinish(@Body Object body);


    @POST("/es/confirmTaskFinish")
    Call<CommonResult> confirmTaskFinish(@Body Object body);

    @POST("/es/get_t_v1")
    Call<CommonResult> queryReceiveTask(@Body Object body);


    @POST("/es/get_t_v2")
    Call<CommonResult> queryPublishTask(@Body Object body);

    @POST("/es/get_t_v3")
    Call<CommonResult> getTasksByTopicId(@Body Object body);

    /**
     * 根据任务id 删除任务
     *
     * @param body
     * @return
     */
    @POST("/es/delete")
    Call<CommonResult> delete(@Body Object body);


}

